#ifndef _TEXTEDITORMARGINE_H_
#define _TEXTEDITORMARGINE_H_

#include <QWidget>
class TextEditor;

class TextEditorMargine : public QWidget
{
    Q_OBJECT
public:
    TextEditorMargine(TextEditor *editor);
    QSize sizeHint() const;

    int lineNumberAreaWidth() const;
protected:
    void paintEvent(QPaintEvent *event);
private slots:
    void updateLineNumberArea(const QRect &rect, int dy);
    void updateLineNumberAreaWidth(int);
private:
    TextEditor *_editor;
};

#endif
